<?php
class Cms_JavascriptController extends H_Controller_Cms_Action{
	public function init(){
            parent::init();
            $this->_helper->layout()->disablelayout();		
            $viewRenderer = $this->_helper->getHelper('viewRenderer');
            $viewRenderer->setView($this->view)->setViewSuffix('js');
            $this->_response->setHeader('Content-type', 'text/javascript; charset=utf-8');
	}
	public function settingAction(){
            $translate = Zend_Registry::get(H_G::T_AD_TRANSLATE);
            $this->view->lang = $translate->getLocale();
            $source = $translate->getTranslateSource($translate->getLocale());
            $tmp = array();
            foreach ($source as $key=>$keyword){
                $tmp[H_S::htmldc($key)] = $keyword;
            }
            $this->view->translateSource = Zend_Json::encode($tmp,  Zend_Json::TYPE_ARRAY);
	}	
      
}